package com.ydd.mapper;


import com.ydd.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


/**
 * @Description TODO
 * @Author Shadow
 * @Date 2023-04-28 15:39
 */
@Mapper
public interface SysUserMapper {

    SysUser  getPassWord(String loginName);


    @Select("select attr_value from sys_config where attr_key=#{attrKey} " +
            "and tab_value='system'")
    String getSystemConfig(String attrKey);

    @Select("select count(*) from sys_user")
    Integer gettotalNumber();

    @Select("select * from sys_user where id=#{SysId}")
    SysUser getSysUserById(String SysId);
}
